import Util from '../../common/js/util'

/**
 * @name 优惠券信息
 * @param {Object} params 请求参数
 * @param {string} params.couponRecordId
 */
export const couponCouponInfo = (params = {}) => {
	return Util.request({
		url: `/api/coupon/couponInfo`,
		method: 'POST',
		data: params
	})
}


/**
 * @name 线下核销优惠券
 * @param {Object} params 请求参数
 * @param {string} params.couponRecordId
 */
export const couponOfflineCancelCoupon = (params = {}) => {
	return Util.request({
		url: `/api/coupon/offlineCancelCoupon`,
		method: 'POST',
		data: params
	})
}